package com.android.studyspot;

public class StudySpot {
	private int id;
	private String course;
	private String startdatetime;
	private String date;
	
	private String startTime;
	private String endTime;
	private String location;
	private String creator;
	private String creatorEmail;
	
	public StudySpot(){
		
	}
	
	public int getId(){
		return this.id;
	}
	
	public String getCreator() {
		return this.creator;
	}
	
	public String getCreatorEmail() {
		return this.creatorEmail;
	}
	
	public String getCourse(){
		return this.course;
	}
	
	public String getStartTime(){
		return this.startTime;
	}
	
	public String getEndTime(){
		return this.endTime;
	}
	
	public String getStartEndTime(){
		return this.startdatetime;
	}
	
	public String getDate(){
		return this.date;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public void setCreatorEmail(String email) {
		this.creatorEmail = email;
	}
	
	public void setCourse(String course){
		this.course = course;
	}
	
	public void setStartEndTime(String startEndTime){
		this.startdatetime = startEndTime;
		
		String[] times = startEndTime.split("-");
		this.startTime = times[0];
		this.endTime = times[1];
	}
	
	public void setDate(String date){
		this.date = date;
	}
	
	public void setLocation(String location){
		this.location = location;
	}
	
	public String getLocation(){
		return this.location;
	}
}
